output "ecs_info" {
  value = {
    for group, config in local.ecs_groups :
    group => {
      for i, ecs_name in config.ecs_name :
      ecs_name => module.ecs["${group}-${ecs_name}"].instance_info.access_ip
    }
  }
}
